export default function () {
  return this.createNode({
    shape: 'custom-electric',
    width: 18,
    height: 40,
    markup: [
      {
        tagName: 'g',
        selector: 'group1',
        children: [
          {
            tagName: 'rect',
            selector: 'line1',
            groupSelector: 'line',
            attrs: {
              x: 9,
              y: 0,
              width: 0.1,
              height: 40
            }
          }
        ]
      },
      {
        tagName: 'g',
        selector: 'group2',
        children: [
          {
            tagName: 'rect',
            selector: 'transverseLine1_1',
            groupSelector: 'transverseLine',
            attrs: {
              x: 9,
              y: 5,
              width: 9,
              transform: 'rotate(45 9 5)'
            }
          },
          {
            tagName: 'rect',
            selector: 'transverseLine1_2',
            groupSelector: 'transverseLine',
            attrs: {
              x: 9,
              y: 5,
              width: 9,
              transform: 'rotate(135 9 5)'
            }
          },
          {
            tagName: 'rect',
            selector: 'transverseLine1_3',
            groupSelector: 'transverseLine',
            attrs: {
              x: 9,
              y: 9,
              width: 9,
              transform: 'rotate(45 9 9)'
            }
          },
          {
            tagName: 'rect',
            selector: 'transverseLine1_4',
            groupSelector: 'transverseLine',
            attrs: {
              x: 9,
              y: 9,
              width: 9,
              transform: 'rotate(135 9 9)'
            }
          }
        ]
      },
      {
        tagName: 'g',
        selector: 'group3',
        children: [
          {
            tagName: 'rect',
            selector: 'line3',
            groupSelector: 'line',
            attrs: {
              x: 4,
              y: 20,
              width: 10,
              height: 15
            }
          }
        ]
      }
    ],
    attrs: {
      line: {
        fill: 'none'
      },
      transverseLine: {
        height: 0.1
      }
    },
    ports: {
      items: [
        {
          group: 'top'
        },
        {
          group: 'bottom'
        }
      ]
    }
  })
}
